package com.simple.datax.api;

public class ConnectorException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4693293658939259022L;
	private boolean isNetworkIssue = false; 

	public ConnectorException(String message, Throwable throwable) {
		super(message, throwable);
	}
	
	public ConnectorException(String message) {
		super(message);
	}
	
	public ConnectorException(String message, Throwable throwable, boolean isNetworkIssue) {
		super(message, throwable);
		this.setNetworkIssue(isNetworkIssue);
	}
	
	public ConnectorException(String message, boolean isNetworkIssue) {
		super(message);
		this.setNetworkIssue(isNetworkIssue);
	}

	public boolean isNetworkIssue() {
		return isNetworkIssue;
	}

	public void setNetworkIssue(boolean isNetworkIssue) {
		this.isNetworkIssue = isNetworkIssue;
	}
}
